/*
 * Copyright (c) 2016 zhangcm. All Rights Reserved.
 */
package com.jnzc.ocr.serv.shop.api;

import com.jnzc.ocr.serv.shop.entity.ShopMain;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author zhangcm
 * @version 1.0, 2017/8/31
 */
@FeignClient("serv-shop")
@RequestMapping("/shopMainApi")
public interface ShopMainApi {

    @GetMapping("/find")
    ShopMain find(@RequestParam("id") Long id);

    @PostMapping("/insert")
    ShopMain insert(@RequestBody ShopMain obj);

    @PostMapping("/update")
    ShopMain update(@RequestBody ShopMain obj);

    @PostMapping("/listByCompanyId")
    List<ShopMain> listByCompanyId(@RequestParam("companyId") Long companyId);
}
